<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>首页</title>
    <jsp:include page="include/resource.jsp"/>
</head>
<body>
<jsp:include page="include/header.jsp"/>
<div class="container" style="padding-left: 150px;padding-right: 150px">

    <div class="text-center">
        <h1>${course.name}</h1>
        <span class="label label-primary">${course.teacher}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <span class="label label-info">课程人数：${course.num}</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <span class="label label-success">${course.starttime} ~ ${course.endtime}</span>
        <a onclick="history.go(-1)" class="pull-right btn btn-default">返回</a>
        <c:if test="${(st ==null || st <= 0) && (course.num > course.numyes)}"><a href="/member/course/bm.do?courseid=${course.id}" class="pull-right btn btn-warning">报名</a></c:if>
        <hr/>
    </div>
    <div style="margin-bottom: 20px">
       ${course.content}
    </div>
    <a class="btn btn-success" href="${course.attachment}">资料下载</a>
</div>


<script>
    var msg = "${msg}";
    if(msg.length > 0){alert(msg);}

</script>
</body>
</html>
